<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>直接设置css样式</title>
		<script>
			function ZhangyangGengshuai()
			{
				var d=document.getElementsByTagName("div")[0];
				console.log(d.innerHTML);
				d.style.cssText="border:20px groove blue;font-size:100px;";
			}
		</script>
	</head>
	<body onload="ZhangyangGengshuai()">
		<div>Hello,张洋是个大帅哥</div>
	</body>
</html>
